﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace borkoSi.Models
{
    public class VideoModel
    {
    }

    public class Video
    {

        [Key]
        public int VideoId { get; set; }

        public string VideoLink { get; set; }

        [Required(ErrorMessage = "Name is required")]
        [Display(Name = "Video name")]
        [StringLength(30, ErrorMessage = "Must be under 30 char")]
        public string VideoName { get; set; }

        public DateTime DateCreated { get; set; }
        public DateTime DateModified { get; set; }
    }

    public class Videos
    {

        public IEnumerable<SelectListItem> VideosDropdownItems;

    }
}